package com.foxmail.yusp75.myexam;

import io.realm.RealmObject;
import io.realm.RealmResults;
import io.realm.annotations.LinkingObjects;
import io.realm.annotations.PrimaryKey;


public class Question extends RealmObject {

    @PrimaryKey
    private String uuid;

    private String content;
    private String answer;
    private String type;  // 单，多，判断

    private int c_wrong;
    private int c_show;
    private boolean bookmark;
    @LinkingObjects("questions")
    private final RealmResults<Paper> paper = null;


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getC_wrong() {
        return c_wrong;
    }

    public void incC_wrong() {
        this.c_wrong++;
    }

    public int getC_show() {
        return c_show;
    }

    public void incC_show() {
        this.c_show++;
    }

    public boolean isBookmark() {
        return bookmark;
    }

    public void setBookmark(boolean bookmark) {
        this.bookmark = bookmark;
    }
}
